Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours by Jennifer Kyrnin
Author:Jennifer Kyrnin
Language: eng
Format: epub, pdf
ISBN: 9780132853309
Publisher: Sams Publishing
Date and Time Types
Dates and times are common fields on web forms, and HTML5 provides six specific input types to collect this information:
• <input type=datetime>
• <input type=datetime-local>
• <input type=date>
• <input type=month>
• <input type=week>
• <input type=time>
The date, month, week, and time types should be fairly self-explanatory. Dates are stored in the format:
YYYY-MM-DD
Months are the same, just without the day:
YYYY-MM
Weeks are sent as the year, followed by the number of the week:
YYYY-W##
Time is sent as:
HH:MM
The datetime and datetime-local types provide more specific dates, including both the date and the time. The only difference between the two is that the datetime includes time zone information and the datetime-local assumes the local time zone and so does not include that information. The formats for the data for these types are
• datetime (YYYY-MM-DDTHH:MMZ+00:00)
• datetime-local (YYYY-MM-DDTHH:MM)
The most frustrating aspect of these input types is that right now, although Safari 5 will create a picker that puts the dates in these formats, the only browser that provides a real date picker is Opera 9. Figure 13.6 shows what the Opera date picker looks like.
Figure 13.6. A date picker in Opera.
Download
Sams Teach Yourself HTML5 Mobile Application Development in 24 Hours by Jennifer Kyrnin.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Whiskies (Collins Gem) by dominic roskrow(45074)
Spell It Out by David Crystal(36041)
Cecilia; Or, Memoirs of an Heiress — Volume 1 by Fanny Burney(32434)
Cecilia; Or, Memoirs of an Heiress — Volume 2 by Fanny Burney(31871)
Cecilia; Or, Memoirs of an Heiress — Volume 3 by Fanny Burney(31854)
Beautiful Disaster by McGuire Jamie(25252)
Trainspotting by Irvine Welsh(21519)
Chic & Unique Celebration Cakes by Zoe Clark(19960)
The Secret History by Donna Tartt(18846)
How High Can a Kangaroo Hop? by Jackie French(18771)
Twilight of the Idols With the Antichrist and Ecce Homo by Friedrich Nietzsche(18503)
All the Missing Girls by Megan Miranda(15572)
Cat's cradle by Kurt Vonnegut(15184)
Ready Player One by Cline Ernest(14524)
Fifty Shades Freed by E L James(13157)
For the Love of Europe by Rick Steves(12998)
4 3 2 1: A Novel by Paul Auster(12283)
Crooked Kingdom: Book 2 (Six of Crows) by Bardugo Leigh(12218)
Grundlagen Kreatives Schreiben (German Edition) by Helfferich Pia(10406)